home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / nsclilib / ni_net.h < prev    next >
Text File  |  1996-07-05  |  6KB  |  209 lines

  1. /*      
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE                          
  5. *               National Center for Biotechnology Information
  6. *                                                                          
  7. *  This software/database is a "United States Government Work" under the   
  8. *  terms of the United States Copyright Act.  It was written as part of    
  9. *  the author's official duties as a United States Government employee and 
  10. *  thus cannot be copyrighted.  This software/database is freely available 
  11. *  to the public for use. The National Library of Medicine and the U.S.    
  12. *  Government have not placed any restriction on its use or reproduction.  
  13. *                                                                          
  14. *  Although all reasonable efforts have been taken to ensure the accuracy  
  15. *  and reliability of the software and data, the NLM and the U.S.          
  16. *  Government do not and cannot warrant the performance or results that    
  17. *  may be obtained by using this software or data. The NLM and the U.S.    
  18. *  Government disclaim all warranties, express or implied, including       
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.                                                                
  21. *                                                                          
  22. *  Please cite the author in any work or product based on this material.   
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:    ni_net.h
  27. *
  28. * Author:       Beatty, Gish
  29. *
  30. * Version Creation Date:        1/1/92
  31. *
  32. * $Revision: 4.0 $
  33. *
  34. * File Description: 
  35. *
  36. *
  37. * Modifications:  
  38. * --------------------------------------------------------------------------
  39. * Date     Name        Description of modification
  40. * -------  ----------  -----------------------------------------------------
  41. * 05-12-92 Epstein     Converted tabs to spaces
  42. * 01-21-94 Schuler     Added NETP_INET_MACTCP symbol
  43. *
  44. * ==========================================================================
  45. *
  46. *
  47. * RCS Modification History:
  48. * $Log: ni_net.h,v $
  49.  * Revision 4.0  1995/07/26  13:56:32  ostell
  50.  * force revision to 4.0
  51.  *
  52.  * Revision 1.18  1995/07/05  14:23:58  kans
  53.  * move #include <sys/select.h> to ncbilcl.r6k
  54.  *
  55.  * Revision 1.17  1995/05/17  17:52:48  epstein
  56.  * add RCS log revision history
  57.  *
  58. */
  59.  
  60. #ifndef _NI_NET_
  61.  
  62. #if !defined(COMP_MPW) && !defined(OS_VMS) && !defined(COMP_METRO) && !defined(__MWERKS__)
  63. #include <fcntl.h>
  64. #endif /* skip for COMP_MPW or OS_VMS or COMP_METRO */
  65.  
  66. #if defined(OS_MAC) && !defined(NETP_defined)
  67. #define NETP_INET_MACTCP
  68. #endif
  69.  
  70. #ifdef NETP_INET_MACTCP
  71. #include <netdb.h>
  72. #include <s_types.h>
  73. #include <s_socket.h>
  74. #include <s_ioctl.h>
  75. #include <neti_in.h>
  76. #include <a_inet.h>
  77. #include <s_time.h>
  78. #define _NI_NET_
  79. #endif /* NETP_INET_MACTCP */
  80.  
  81. #ifdef NETP_INET_WSOCK
  82. #undef NEAR
  83. #undef FAR
  84. #undef Beep
  85. #undef PASCAL
  86. #undef CDECL
  87. #undef TRUE
  88. #undef FALSE
  89. #define STRICT
  90. #include <windows.h>
  91. #include <winsock.h>
  92. #define _NI_NET_
  93. #endif /* NETP_INET_WSOCK */
  94.  
  95. #ifdef NETP_INET_NEWT
  96. #undef TRUE
  97. #undef FALSE
  98. #undef NULL
  99. #include <nmpcip.h>
  100. #define _NI_NET_
  101. #endif /* NETP_INET_NEWT */
  102.  
  103. #ifdef NETP_INET_PCNFS
  104. #include <netdb.h>
  105. #include <sys/socket.h>
  106. #include <sys/types.h>
  107. #include <sys/ioctl.h>
  108. #include <netinet/in.h>
  109. #include <windows.h>
  110. #include <in_addr.h>
  111. #include <sys/nfs_time.h>
  112. #include <tk_errno.h>
  113. #define _NI_NET_
  114. #endif /* NETP_INET_PCNFS */
  115.  
  116. /* TGV, Inc. Multinet TCP/IP suite */
  117. #ifdef NETP_INET_TGV
  118. #include "Multinet_root:[multinet.include]netdb.h"
  119. #include "Multinet_root:[multinet.include.sys]types.h"
  120. #include "Multinet_root:[multinet.include.sys]socket.h"
  121. #include "Multinet_root:[multinet.include.sys]ioctl.h"
  122. #include "Multinet_root:[multinet.include.netinet]in.h"
  123. #include "Multinet_root:[multinet.include.arpa]inet.h"
  124. /*#include "Multinet_root:[multinet.include.sys]time.h"*/
  125. #include "Multinet_root:[multinet.include]errno.h"
  126. #define _NI_NET_
  127. #endif /* NETP_INET_TGV */
  128.  
  129. /* The Wollongong Group, Inc. TCP/IP suite */
  130. #ifdef NETP_INET_TWG
  131. #include <netdb.h>
  132. #include <types.h>
  133. #include <socket.h>
  134. /*#include <ioctl.h>*/
  135. #include <in.h>
  136. #include <inet.h>
  137. #include <time.h>
  138. #include <errno.h>
  139. #define _NI_NET_
  140. #endif /* NETP_INET_TWG */
  141.  
  142. /* The Wollongong PathWay API 1.0 suite for OpenVMS */
  143. #ifdef NETP_INET_WPW
  144. #include <netdb.h>
  145. #include <sys/types.h>
  146. #include <sys/socket.h>
  147. #include <sys/ioctl.h>
  148. #include <netinet/in.h>
  149. #include <arpa/inet.h>
  150. #include <sys/time.h>
  151. #include <errno.h>
  152. #define _NI_NET_
  153. #endif /* NETP_INET_TWG */
  154.  
  155. /* DEC TCP/IP for OpenVMS */
  156. #ifdef NETP_INET_UCX
  157. #include <netdb.h>
  158. #include <types.h>
  159. #include <socket.h>
  160. #include <in.h>
  161. #include <inet.h>
  162. #include <time.h>
  163. #include <ucx$inetdef.h>
  164. #include <iodef.h>
  165. #define _NI_NET_
  166. #endif /* NETP_INET_UCX */
  167.  
  168.  
  169. /* default */
  170. #ifndef _NI_NET_
  171. #include <netdb.h>
  172. #include <sys/socket.h>
  173. #include <sys/types.h>
  174. #include <sys/ioctl.h>
  175. #include <netinet/in.h>
  176. #include <arpa/inet.h>
  177. #include <sys/time.h>
  178. #define _NI_NET_
  179. #endif /* _NI_NET_ */
  180.  
  181.    /*** included from ni_lib.c *****/
  182.  
  183. #ifdef OS_UNIX
  184. #include <signal.h>
  185. #endif /* OS_UNIX */
  186. #ifdef NETP_INET_MACTCP
  187. #include <neterrno.h> /* include missing error numbers */
  188. #endif /* NETP_INET_MACTCP */
  189. #ifdef OS_VMS
  190. #include <perror.h>
  191. #endif /* OS_VMS */
  192.  
  193. #ifdef NETP_SOCKS
  194. #include <socks.h>
  195. #endif
  196.  
  197.   /*** included from ni_msg.c *****/
  198.  
  199. #ifdef NETP_INET_MACTCP
  200. #include <s_fcntl.h>
  201. #include <neterrno.h> /* missing error numbers on Mac */
  202. #endif /* NETP_INET_MACTCP */
  203. #ifdef OS_VMS
  204. #include <perror.h>
  205. #endif /* OS_VMS */
  206.  
  207. #endif
  208.  
  209.